<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@ page import="com.fengke.csc.config.HostConfig" %>
<%
	HostConfig hostConfig = (HostConfig) request.getSession().getServletContext().getAttribute("hostConfig");
%>
<!DOCTYPE html>
	<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
	<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
	<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
	<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
	<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<title><%=hostConfig.getWebSiteName() %></title>
		<meta name="keywords" content="<%=hostConfig.getWebSiteName() %>" />
		<meta name="description" content="<%=hostConfig.getWebSiteName() %>" />
		<jsp:include page="../gadget/include_header.jsp"></jsp:include>
	</head>
	<body>
		<!-- 头信息 Start -->
		<jsp:include page="../gadget/main_header.jsp"></jsp:include>
		<!-- 头信息 End -->
		<jsp:include page="../gadget/main_sidebar.jsp"></jsp:include>
		<div class="main-content">
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
				</script>

				<ul class="breadcrumb">
					<li>
						<i class="icon-home home-icon"></i>
						<a href="#">首页</a>
					</li>
					<li class="active">商户管理</li>
				</ul><!-- .breadcrumb -->
			</div>
			<div class="page-content">
				<div class="page-header">
					<h1>
						商户详情
						<small>
							<i class="icon-double-angle-right"></i>
							 查看
						</small>
					</h1>
				</div><!-- /.page-header -->
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->

						<jsp:include page="../gadget/include_pageMessage.jsp"></jsp:include>
						
						<div class="tabbable">
							<ul id="order_detail_tab" class="nav nav-tabs padding-12 tab-color-blue background-blue">
								<li class="active">
									<a data-toggle="tab" href="#agentProfile_detail_base_info">基本信息</a>
								</li>

								<li>
									<a data-toggle="tab" href="#agentProfile_detail_personal_info">个人资料信息</a>
								</li>
							</ul>

							<div class="tab-content">
								<div id="agentProfile_detail_base_info" class="tab-pane in active">
									<div class="table-responsive dataTables_wrapper">
										<table class="table table-striped table-bordered table-hover dataTable">
											<tr>
												<th style="text-align: right">用户名：</th>
												<td><s:property value="agentProfileVO.adminModel.username" /></td>
												<th style="text-align: right">创建日期：</th>
												<td><s:date name='agentProfileVO.adminModel.createDate' format="yyyy-MM-dd HH:mm:ss"/></td>
											</tr>
											<tr>
												<th style="text-align: right">E-mail：</th>
												<td><s:property value="agentProfileVO.adminModel.email" /></td>
												<th style="text-align: right">联系电话：</th>
												<td><s:property value="agentProfileVO.adminModel.phoneNum" /></td>
											</tr>
											<tr>
												<th style="text-align: right">是否启用：</th>
												<td>
													<s:if test="agentProfileVO.adminModel.isEnabled">启用</s:if>
													<s:else>未启用</s:else>
												</td>
												<th style="text-align: right">是否可设置上架：</th>
												<td>
													<s:if test="agentProfileVO.adminModel.canSetMarketable">可以</s:if>
													<s:else>不可以</s:else>
												</td>
											</tr>
											<tr>
												<th style="text-align: right">申请单位：</th>
												<td><s:property value="agentProfileVO.adminModel.company" /></td>
												<th style="text-align: right">证件号：</th>
												<td><s:property value="agentProfileVO.adminModel.paperNum" /></td>
											</tr>
											<tr>
												<th style="text-align: right">锁定状态：</th>
												<td>
													<s:if test="agentProfileVO.adminModel.isLocked">已锁定</s:if>
													<s:else>未锁定</s:else>
												</td>
												<s:if test="agentProfileVO.adminModel.isLocked">
													<th style="text-align: right">锁定日期：</th>
													<td><s:date name='agentProfileVO.adminModel.lockedDate' format="yyyy-MM-dd HH:mm:ss"/></td>
												</s:if>
												<s:else>
													<th></th><td></td>
												</s:else>
											</tr>
											<tr>
												<th style="text-align: right">角色：</th>
												<td colspan="3">
													<s:if test="agentProfileVO.adminRoleModelList != null && agentProfileVO.adminRoleModelList.size() > 0">
														<s:iterator value="agentProfileVO.adminRoleModelList" var="adminRole">
															<s:property value="#adminRole.roleModel.name" />
														</s:iterator>
													</s:if>
												</td>
											</tr>
											<tr>
												<th style="text-align: right">商家故事：</th>
												<td colspan="3"><s:property value="agentProfileVO.adminModel.adminStory" escapeHtml="false" /></td>
											</tr>
										</table>
									</div>
								</div><!-- end agentProfile_detail_base_info -->

								<div id="agentProfile_detail_personal_info" class="tab-pane">
									<div class="table-responsive dataTables_wrapper">
										<table class="table table-striped table-bordered table-hover dataTable">
											<tr>
												<th style="text-align: right">部门：</th>
												<td><s:property value="agentProfileVO.adminModel.department" /></td>
												<th style="text-align: right">姓名：</th>
												<td><s:property value='agentProfileVO.adminModel.name' /></td>
											</tr>
											<tr>
												<th style="text-align: right">地址：</th>
												<td><s:property value="agentProfileVO.adminModel.address" /></td>
												<th style="text-align: right"></th>
												<td></td>
											</tr>
											<tr>
												<th style="text-align: right">证件类型：</th>
												<td>身份证</td>
												<th style="text-align: right">身份证号码：</th>
												<td>
													<s:property value="agentProfileVO.adminModel.idNum" />
												</td>
											</tr>
											<tr>
												<th style="text-align: right">申请单位：</th>
												<td><s:property value="agentProfileVO.adminModel.company" /></td>
												<th style="text-align: right">证件号：</th>
												<td><s:property value="agentProfileVO.adminModel.paperNum" /></td>
											</tr>
											<tr>
												<th style="text-align: right">手持身份证照片：</th>
												<td colspan="3"><img src="<s:property value='agentProfileVO.adminModel.idHandsImg' />" /></td>
											</tr>
											<tr>
												<th style="text-align: right">手持身份证照片：</th>
												<td colspan="3"><img src="<s:property value='agentProfileVO.adminModel.idFrontImg' />" /></td>
											</tr>
											<tr>
												<th style="text-align: right">手持身份证照片：</th>
												<td colspan="3"><img src="<s:property value='agentProfileVO.adminModel.idBackImg' />" /></td>
											</tr>
										</table>
									</div>
								</div><!-- end agentProfile_detail_personal_info -->
								
							</div>
							
						</div>
					</div>
				</div>
			</div>
		</div>
			
	<jsp:include page="../gadget/include_script.jsp"></jsp:include>
	<script type="text/javascript">
		jQuery(function($) {
			$('#sidebar_agentProfile').addClass('open');
			$('#sidebar_agentProfile').addClass('active');
			$('#sidebar_agentProfile_manager').addClass('active');
		});
	</script>
	</body>
</html>